package com.woniuxy.mapper;

import com.woniuxy.entity.FoodOrder;
import com.woniuxy.entity.FoodOrderExample;
import java.util.List;
import java.util.Map;

import com.woniuxy.vo.FoodOrderVO;
import org.apache.ibatis.annotations.Param;

public interface FoodOrderMapper {
    long countByExample(FoodOrderExample example);

    int deleteByExample(FoodOrderExample example);

    int deleteByPrimaryKey(Integer foodOrderId);

    int insert(FoodOrder record);

    int insertSelective(FoodOrder record);

    List<FoodOrder> selectByExample(FoodOrderExample example);

    FoodOrder selectByPrimaryKey(Integer foodOrderId);

    int updateByExampleSelective(@Param("record") FoodOrder record, @Param("example") FoodOrderExample example);

    int updateByExample(@Param("record") FoodOrder record, @Param("example") FoodOrderExample example);

    int updateByPrimaryKeySelective(FoodOrder record);

    int updateByPrimaryKey(FoodOrder record);

    /**
     * 美食订单条件分页查询
     * @param map
     * @return
     */
    List<FoodOrderVO> selectFoodOrderByExample(Map<String, Object> map);

    /**
     * 美食订单统计总条数
     * @param map
     * @return
     */
    int countFoodOrder(Map<String, Object> map);
}